/*
 * MessengerBounded.h
 *
 *  Created on: Jun 29, 2009
 *      Author: yoav
 */

#ifndef MESSENGERBOUNDED_H_
#define MESSENGERBOUNDED_H_

#include "Messenger.h"
#include "ProtectedQBounded.h"
class MessengerBounded: public Messenger {
private:
	ProtectedQBounded inbox;

public:
	int limit;
	MessengerBounded();
	void setLimit(int limit);
	virtual ~MessengerBounded();
	void insertMsg(void* n,Message * msg);
	int get_inbox_size();
	virtual void popMsg();

};

#endif /* MESSENGERBOUNDED_H_ */
